.dialogs {
    display: grid;
    grid-template-columns: 1fr 5fr;
    grid-template-rows: 1fr 200px;
    grid-template-areas:
            'dialogs messages'
            'dialogs form';
    padding: 10px;
}

.dialogsItems {
    grid-area: dialogs;
    padding: 5px;
    min-width: 150px;
}

.dialog {
    padding: 5px;
}

.messages {
    grid-area: messages;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    max-width: 500px;
    padding: 5px 60px;
    border: 1px solid #777;
    border-radius: 5px;
}

.addMessageForm {
    grid-area: form;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    min-width: 250px;
}

.addMessageForm textarea {
    max-width: 500px;
}

.addMessageForm button {
    width: 80px;
    align-self: flex-end;
}